/*
 * XML Type:  XDBSchemaPairListSource
 * Namespace: http://www.seedwill.com/xul/core
 * Java type: com.seedwill.xul.core.XDBSchemaPairListSource
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.core.impl;
/**
 * An XML XDBSchemaPairListSource(@http://www.seedwill.com/xul/core).
 *
 * This is a complex type.
 */
public class XDBSchemaPairListSourceImpl extends com.seedwill.xul.core.impl.XDBSchemaListSourceImpl implements com.seedwill.xul.core.XDBSchemaPairListSource
{
    private static final long serialVersionUID = 1L;
    
    public XDBSchemaPairListSourceImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SCHEMATEXT$0 = 
        new javax.xml.namespace.QName("", "schemaText");
    private static final javax.xml.namespace.QName SCHEMATAG$2 = 
        new javax.xml.namespace.QName("", "schemaTag");
    private static final javax.xml.namespace.QName SCHEMADATA$4 = 
        new javax.xml.namespace.QName("", "schemaData");
    
    
    /**
     * Gets the "schemaText" element
     */
    public java.lang.String getSchemaText()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SCHEMATEXT$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "schemaText" element
     */
    public org.apache.xmlbeans.XmlString xgetSchemaText()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SCHEMATEXT$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "schemaText" element
     */
    public void setSchemaText(java.lang.String schemaText)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SCHEMATEXT$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SCHEMATEXT$0);
            }
            target.setStringValue(schemaText);
        }
    }
    
    /**
     * Sets (as xml) the "schemaText" element
     */
    public void xsetSchemaText(org.apache.xmlbeans.XmlString schemaText)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SCHEMATEXT$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SCHEMATEXT$0);
            }
            target.set(schemaText);
        }
    }
    
    /**
     * Gets the "schemaTag" element
     */
    public java.lang.String getSchemaTag()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SCHEMATAG$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "schemaTag" element
     */
    public org.apache.xmlbeans.XmlString xgetSchemaTag()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SCHEMATAG$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "schemaTag" element
     */
    public boolean isSetSchemaTag()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SCHEMATAG$2) != 0;
        }
    }
    
    /**
     * Sets the "schemaTag" element
     */
    public void setSchemaTag(java.lang.String schemaTag)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SCHEMATAG$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SCHEMATAG$2);
            }
            target.setStringValue(schemaTag);
        }
    }
    
    /**
     * Sets (as xml) the "schemaTag" element
     */
    public void xsetSchemaTag(org.apache.xmlbeans.XmlString schemaTag)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SCHEMATAG$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SCHEMATAG$2);
            }
            target.set(schemaTag);
        }
    }
    
    /**
     * Unsets the "schemaTag" element
     */
    public void unsetSchemaTag()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SCHEMATAG$2, 0);
        }
    }
    
    /**
     * Gets the "schemaData" element
     */
    public java.lang.String getSchemaData()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SCHEMADATA$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "schemaData" element
     */
    public org.apache.xmlbeans.XmlString xgetSchemaData()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SCHEMADATA$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "schemaData" element
     */
    public boolean isSetSchemaData()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SCHEMADATA$4) != 0;
        }
    }
    
    /**
     * Sets the "schemaData" element
     */
    public void setSchemaData(java.lang.String schemaData)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SCHEMADATA$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SCHEMADATA$4);
            }
            target.setStringValue(schemaData);
        }
    }
    
    /**
     * Sets (as xml) the "schemaData" element
     */
    public void xsetSchemaData(org.apache.xmlbeans.XmlString schemaData)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SCHEMADATA$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SCHEMADATA$4);
            }
            target.set(schemaData);
        }
    }
    
    /**
     * Unsets the "schemaData" element
     */
    public void unsetSchemaData()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SCHEMADATA$4, 0);
        }
    }
}
